
import React from 'react';
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
import Home from './pages/home';
import CityList from './pages/citylist';
import Map from './pages/map';
function App() {
	return (
		<Router>
			<div className="App">

				<Route path="/home" component={Home} />
				<Route path="/citylist" component={CityList} />
				<Route path ="/map" component={Map} />
 				<Route path="/" exact render={() => <Redirect to="/home" />} />
			</div>
		</Router>
	);
}

export default App;
